/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (xianliru@163.com)
 */

package com.pig4cloud.pig.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 中国地区
 *
 * @author xianliru@163.com
 * @date 2020-04-23 23:17:09
 */
@Data
@TableName("t_area")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "中国地区")
public class Area extends Model<Area> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Integer id;
    /**
     * 层级
     */
    @ApiModelProperty(value="层级")
    private Integer level;
    /**
     * 父级行政代码
     */
    @ApiModelProperty(value="父级行政代码")
    private Long parentCode;
    /**
     * 行政代码
     */
    @ApiModelProperty(value="行政代码")
    private Long areaCode;
    /**
     * 邮政编码
     */
    @ApiModelProperty(value="邮政编码")
    private Integer zipCode;
    /**
     * 区号
     */
    @ApiModelProperty(value="区号")
    private String cityCode;
    /**
     * 名称
     */
    @ApiModelProperty(value="名称")
    private String name;
    /**
     * 简称
     */
    @ApiModelProperty(value="简称")
    private String shortName;
    /**
     * 组合名
     */
    @ApiModelProperty(value="组合名")
    private String mergerName;
    /**
     * 拼音
     */
    @ApiModelProperty(value="拼音")
    private String pinyin;
    /**
     * 经度
     */
    @ApiModelProperty(value="经度")
    private BigDecimal lng;
    /**
     * 纬度
     */
    @ApiModelProperty(value="纬度")
    private BigDecimal lat;
    }
